<script setup>
import { RouterView } from 'vue-router'

// 阻止滚轮缩放
window.addEventListener("mousewheel", function (event) {
  if (event.ctrlKey === true || event.metaKey) {
    event.preventDefault();
  }
}, { passive: false });

// 阻止触摸屏的缩放（包括双指缩放）
window.addEventListener("touchstart", function (event) {
  if (event.touches.length > 1) {
    event.preventDefault();  // 阻止双指触摸缩放
  }
}, { passive: false });

window.addEventListener("touchmove", function (event) {
  if (event.touches.length > 1) {
    event.preventDefault();  // 阻止双指触摸缩放
  }
}, { passive: false });

</script>

<template>
    <RouterView :key="$route.fullPath" />
</template>

<style scoped>

</style>
